﻿namespace Vampirewal.Core.WPF.Theme;

/// <summary>
/// VampirewalFolderBrowserDialog.xaml 的交互逻辑
/// </summary>
[VampirewalIoCRegister("VampirewalFolderBrowserDialog", RegisterType.Transient)]
public partial class VampirewalFolderBrowserDialog : WindowBase
{
    #region 属性

    /// <summary>
    /// 文件夹完整路径
    /// </summary>
    public string FullPath { get; set; }

    #endregion 属性

    public VampirewalFolderBrowserDialog()
    {
        InitializeComponent();
        this.Loaded += VampirewalFolderBrowserDialog_Loaded;
    }

    private void VampirewalFolderBrowserDialog_Loaded(object sender, RoutedEventArgs e)
    {
    }

    private void SelectFolderBtn_Click(object sender, RoutedEventArgs e)
    {
        this.DialogResult = true;

        FullPath = "aaaa";
        base.CloseWin_Click(null, null);
    }

    private void QuXiaoBtn_Click(object sender, RoutedEventArgs e)
    {
        this.DialogResult = false;
        base.CloseWin_Click(null, null);
    }
}